﻿namespace Whut.ObjectSharePointMapper
{
    using System;

    [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
    public sealed class ListAttribute : Attribute
    {
        /// <summary>
        /// Connects entity with list from given relative url.
        /// </summary>
        /// <param name="listRelativeUrl">List rlative url</param>
        public ListAttribute(string listRelativeUrl)
        {
            this.ListRelativeUrl = listRelativeUrl;
        }

        public string ListRelativeUrl { get; private set; }
    }
}
